package java0107;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Java8 {
    public static void main(String[] args) throws IOException {

        FileWriter fileWriter = new FileWriter("路径");
        BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
        for (int i = 0; i < 10; i++) {
            bufferedWriter.write("1");
        }
        fileWriter.close();
        bufferedWriter.close();

        FileWriter fileWriter1 = new FileWriter("路径");
        BufferedWriter bufferedWriter1 = new BufferedWriter(fileWriter1);
        for (int i = 0; i < 10; i++) {
            bufferedWriter1.write("1");
        }
        fileWriter1.close();
        bufferedWriter1.close();

        FileWriter fileWriter2 = new FileWriter("路径");
        BufferedWriter bufferedWriter2 = new BufferedWriter(fileWriter2);
        for (int i = 0; i < 10; i++) {
            bufferedWriter2.write("1");
        }
        fileWriter2.close();
        bufferedWriter2.close();

    }
}
